// UnicodeText.h: interface for the CUnicodeText class.
//
//////////////////////////////////////////////////////////////////////

#pragma once

class CUnicodeText
{
public:
	int iRead1Line(TCHAR *tcUnicode, int iLen, int iFrom, int &iNext, CString &csLine);
	UINT uiGetCodePage(BYTE *b, long lSize);
	BYTE * bUnicodetoUTF8(TCHAR *tcUnicode, long lUnicode, long &lUTF8);
	TCHAR * tcUTF8toUnicode(BYTE *bUTF8, long lUTF8, long &lUnicode);
	void WriteTextfile(LPCTSTR lpFilename);
	int iTextType(BYTE *b, long lSize, int &headersize);
	bool bReadTextfile(LPCTSTR lpFilename, UINT uiCodePage = CP_ACP);
	long lLen;
	TCHAR *tcText;
	CUnicodeText();
	virtual ~CUnicodeText();

};
